/*-
 * #%L
 * thinkbig-ui-operations-manager
 * %%
 * Copyright (C) 2017 ThinkBig Analytics
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

/**
 * Styles for the ops-manager
 */

/**
 * overview alerts section
 */
tba-alerts card-layout .card-toolbar {
  padding-top: 16px;
  margin-top: 0px;
  height: 50px;
}

tba-alerts card-layout .card-toolbar .right-card-title-text {
  margin-top: 0px;
  margin-bottom: 0px;
}

tba-alerts card-layout {
  margin-right: 0px;
}

/**
 * Key Performance Indicators (KPIs) on the main overview page
 **/

.kpi-content {
  width: 100%;
  text-align: center;
  padding: 0px;
}

.kpi-health-count-container {
  width: 100%;
  margin-top: -10px;
  padding-left: 5px;
  padding-right: 5px;
}

.kpi-health-count {
  font-size: 25px;
  font-weight: 500;
}

.kpi-subtitle, .kpi-health-label {
  color: #807272;
}

.kpi-header, .kpi-subtitle {
  white-space: nowrap;
}

.kpi-loading {
  min-height: 183px;
  max-height: 183px;
  height: 183px;
}

#job-activity-kpi svg g.nv-series-0 {
  fill-opacity: 1 !important;
}

.kpi:first-child md-card {
  margin-left: 0px;
  margin-right: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
}

/* KYLO-371 Show KPIs in a row in Safari */
@media (min-width: 600px) {
  .kpi-row.layout-row > .kpi.flex-gt-md-25 {
    /*flex: 1 1 45%;*/
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 45%;
  }
}
@media (min-width: 1280px) {
  .kpi-row.layout-row > .kpi.flex-gt-md-25 {
    /*flex: 1 1 10%;*/
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 10%;
  }
}
.kpi-row.layout-align-space-between-center > * {
  align-items: flex-start;
  align-content: flex-start;
}

.kpi:last-child md-card {
  margin-left: 10px;
  margin-right: 0px;
  margin-bottom: 10px;
  margin-top: 10px;
}

/**
 * Jobs listing styles
 */

tba-jobs md-list-item:hover {
  background-color: rgba(158, 158, 158, 0.2);
}

/** Feed Details Page **/

.feed-details md-list-item, .feed-details md-list-item .md-list-item-inner {
  align-items: flex-start !important;
}

/**
 * Job Details
 **/
.job-details-right-body .card-content button:first-child {
  margin-left: 0px;
}

/** TAB styles **/
md-tabs md-ink-bar {
  height: 5px !important;
}

md-tabs.md-default-theme md-ink-bar, md-tabs md-ink-bar {
  background-color: #3483bb !important;
}


